<template>
    <l-page class="block pb-3">
        <l-navbar title="常见问题"></l-navbar>
        <view class="panel !py-0">
            <view class="border-b border-gray-100  last:border-0" v-for="item in data?.articles" :key="item.id">
                <navigator :url="'/pages/article/detail?id=' + item.id" class="flex py-3">
                    <view class="flex-1 eps">
                        {{ item.title }}
                    </view>
                    <u-icon name="arrow-right"></u-icon>
                </navigator>
            </view>
        </view>
    </l-page>
</template>
<script setup lang="ts">
import Article from "@/stores/article";
import { computed, ref } from "vue";
let article = Article(), typeId = ref(1)
let data: any = computed(() => article.list.find((item: any) => item.id == typeId.value))
</script>